package com.pine.common.beans.pineframework.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 系统部门表新增或修改请求体
 * </p>
 *
 * @author pine manage
 * @since 2024-08-16
 */
@Data
@Schema(title = "SysDeptSaveOrUpdateRequest", description = "系统部门表新增或修改请求体")
public class SysDeptSaveOrUpdateRequest implements Serializable {

    @Serial
    private static final long serialVersionUID = 4097745093920393882L;

    /**
     * 主键
     */
    @Schema(title = "id", description = "主键")
    private Long id;
    /**
     * 部门名称
     */
    @NotBlank(message = "部门名称不能为空")
    @Schema(title = "name", description = "部门名称")
    private String name;
    /**
     * 部门编号
     */
    @NotBlank(message = "部门编号不能为空")
    @Schema(title = "code", description = "部门编号")
    private String code;
    /**
     * 父节点id
     */
    @NotBlank(message = "父节点id不能为空")
    @Schema(title = "parentId", description = "父节点id")
    private Long parentId;
    /**
     * 显示顺序
     */
    @Schema(title = "sort", description = "显示顺序")
    private Integer sort;
    /**
     * 状态:0=启用,1=禁用
     */
    @Schema(title = "status", description = "状态:0=启用,1=禁用")
    private Integer status;
}
